home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
ddj0897.zip
/
DYN401.ZIP
/
class
/
bitary.c
< prev
next >
Wrap
C/C++ Source or Header
|
1997-04-16
|
2KB
|
92 lines
/* Copyright (c) 1993-1996 Algorithms Corporation */
/* All rights reserved. */
/* This file automatically generated by dpp - do not edit */
#define DPP_STRATEGY 2
#define DPP_FASTWIDE 0
#line 18 "bitary.d"
#include "array1.h"
#define CLASS BitArray_c
#define ivType BitArray_iv_t
#include "generics.h"
object BitArray_c;
#line 24 "bitary.d"
cvmeth objrtn BitArray_cvm_vNew(object self, va_list _rest_)
{
unsigned rank = va_arg(_rest_, unsigned);
#line 26 "bitary.d"
static gNewArray_t cnew = NULL;
MAKE_REST(rank);
if (!cnew)
cnew = cmcPointer(Array, gNewArray);
return cnew(self, AT_BIT, rank, _rest_);
}
#line 43 "bitary.c"
static objrtn BitArray_cfm_vNew(object self, ...)
{
va_list _rest_;
va_start(_rest_, self);
return BitArray_cvm_vNew(self, _rest_);
}
#line 54 "bitary.c"
objrtn BitArray_initialize(void)
{
static CRITICALSECTION cs;
static int volatile once = 0;
ENTERCRITICALSECTION(_CI_CS_);
if (!once) {
INITIALIZECRITICALSECTION(cs);
once = 1;
}
LEAVECRITICALSECTION(_CI_CS_);
ENTERCRITICALSECTION(cs);
if (BitArray_c) {
LEAVECRITICALSECTION(cs);
return BitArray_c;
}
INHIBIT_THREADER;
Array_initialize();
if (BitArray_c) {
ENABLE_THREADER;
LEAVECRITICALSECTION(cs);
return BitArray_c;
}
BitArray_c = gNewClass(Class, "BitArray", 0, 0, Array, END);
cvMethodFor(BitArray, vNew, BitArray_cvm_vNew, BitArray_cfm_vNew);
ENABLE_THREADER;
LEAVECRITICALSECTION(cs);
return BitArray_c;
}